//
//  JXPicRecordModel.h
//  JXIntercomSDK
//
//  Created by Nansen on 2020/4/16.
//  Copyright © 2020 jingxi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

/// 截图存储在沙盒对应的目录中

NS_ASSUME_NONNULL_BEGIN


@interface JXPicRecordModel : NSObject

/// 此截图的唯一标识
@property (nonatomic, copy) NSString *picId;
/// 对应的 JXCallRecordModel 的 homeId
@property (nonatomic, copy) NSString *homeId;
/// 对应的 JXCallRecordModel 的 sessionId
@property (nonatomic, copy) NSString *sessionId;


/// 截图的文件名 e.g. 13203394960184379.jpeg
@property (nonatomic, copy, nullable) NSString *picName;
/// 文件夹路径:一般是时间戳 e.g. 13203138231365510
@property (nonatomic, copy, nullable) NSString *folderName;


/// 图片的完整本地路径
- (NSString * _Nullable)fullImagePath;

/// 图片的创建时间
- (NSDate * _Nullable)createDate;

/// 获得图片对象
- (UIImage * _Nullable)imageFromFile;

/// 图片是否存在
- (BOOL)picIsExsit;

@end

NS_ASSUME_NONNULL_END
